<?php get_header(); ?>
<?php get_sidebar(); ?>

<div id="content">
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>

<div class="post">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="contenttext">
<?php the_content('阅读这篇文章的其余部分 &raquo;'); ?>
</div>

<p class="postinfo"><?php the_author() ?>|分类:<?php the_category(', ') ?>|<?php the_time('Y年m月d日 l') ?> <br />
<a href="<?php comments_link(); ?>"><strong>评论:</strong> <?php comments_number('发表评论','1','%'); ?></a>
<?php edit_post_link('编辑',' | ',''); ?></p>
</div>
<?php endwhile; ?>

<div class="navigation">
<p><span class="prevlink"><?php next_posts_link('&laquo; 较旧文章') ?></span>
<span class="nextlink"><?php previous_posts_link('较新文章 &raquo;') ?></span></p>
</div>
		
<?php else : ?>
<h2>没有内容</h2>
<p>抱歉，您要找的东西不在这里。</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>

</div>
<?php get_footer(); ?>